package com.cloudwise.dao;

import com.cloudwise.entity.Tester;
import com.cloudwise.entity.TesterVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：wangcf
 * @date ：Created in 2022/1/18 15:19
 * @description：测试者dao接口
 * @modified By：
 * @version: 1.0
 */
public interface TesterDao {
    /**
     * @param tester
     * @return int
     * @create by: wangcf
     * @description: 保存测试者信息
     * @create time: 2022/1/18 15:22
     */
    int saveTester(Tester tester);

    /**
     * @param id
     * @return int
     * @create by: wangcf
     * @description: 按照主键删除
     * @create time: 2022/1/18 15:22
     */
    int deleteTester(Integer id);

    int updateTester(Tester tester);

    Tester selectTesterById(Integer id);

    // List<Tester> selectAllTester(@Param("page") Long page  ,@Param("limit") Long limit,@Param("tester") Tester tester);
    List<TesterVo> selectAllTester(@Param("page") Long page, @Param("limit") Long limit, @Param("tester") Tester tester);

    Long getCount(@Param("tester") Tester tester);

    int deleteTesterByIds(@Param("idList") List<Long> idList);

    int checkPhone(String phone);

    void deleteNoResult();
}
